#include "Environment.h"
#include "Worker.h"
#include "House.h"

/** 360 Grad funktionen */
#define sin_d(x) (sin((x)*M_PI/180))
#define cos_d(x) (cos((x)*M_PI/180))
#define tan_d(x) (tan((x)*M_PI/180))
#define asin_d(x) (asin(x)*180/M_PI)
#define acos_d(x) (acos(x)*180/M_PI)
#define atan_d(x) (atan(x)*180/M_PI)


void Entity_List( struct sEntity *Obj )
{
    switch( Obj->Process )
    {
        case  1: Entity_Worker(Obj); break;
        case  2: Entity_House(Obj); break;
        case 64: Entity_Border(Obj); break;
        default: Entity_None(Obj); break;
    }
}

void Entity_List_Graphic( struct sEntity *Obj )
{
    switch( Obj->Process )
    {
        case  1: Entity_Worker_Graphic(Obj); break;
        case  2: Entity_House_Graphic(Obj); break;
        case 64: break;
        default: break;
    }
}
